﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterALSafa.Master" AutoEventWireup="true"
    CodeBehind="AddStudentsToClass.aspx.cs" Inherits="School.Pages.Admission.AddStudentsToClass" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server">
        <ProgressTemplate>
            <div id="displaybox">
                <div>
                    جارى تنفيذ الأمر</div>
            </div>
        </ProgressTemplate>
    </asp:UpdateProgress>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
            <table>
                <tr>
                    <td style="width: 100%">
                        <table>
                            <tr>
                                <td>
                                    المجمع
                                </td>
                                <td>
                                    <asp:DropDownList ID="LstCampuses" runat="server" OnSelectedIndexChanged="LstCampuses_SelectedIndexChanged"
                                        AutoPostBack="True">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    الشهادة
                                </td>
                                <td>
                                    <asp:DropDownList ID="LstCertificates" runat="server" AutoPostBack="True" OnSelectedIndexChanged="LstCertificates_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    المرحلة
                                </td>
                                <td>
                                    <asp:DropDownList ID="LstStages" runat="server" AutoPostBack="True" OnSelectedIndexChanged="LstStages_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    الصف
                                </td>
                                <td>
                                    <asp:DropDownList ID="LstGrades" runat="server" AutoPostBack="True" OnSelectedIndexChanged="LstGrades_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                            <tr>
                                <td>
                                    الفصل
                                </td>
                                <td>
                                    <asp:DropDownList ID="lstClasses" runat="server" AutoPostBack="True" OnSelectedIndexChanged="lstClasses_SelectedIndexChanged">
                                    </asp:DropDownList>
                                </td>
                            </tr>
                        </table>
                        <asp:GridView ID="GridView1" runat="server" CssClass="Grid" HeaderStyle-CssClass="GridHeaderFooter"
                                FooterStyle-CssClass="GridHeaderFooter" PagerStyle-CssClass="GridPager" AlternatingRowStyle-CssClass="GridItemAltername"
                                AutoGenerateColumns="False">
                            <AlternatingRowStyle CssClass="GridItemAltername" />
                            <Columns>
                                <asp:TemplateField HeaderStyle-Width="1%">
                                <ItemTemplate>
                                    <asp:CheckBox ID="ChkIsInClass" Checked='<%# InClass(Eval("Id")) %>' runat="server" />
                                    <asp:Label Visible="false" ID="lblStudentId" runat="server" Text='<%# Eval("Id") %>'></asp:Label>
                                </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField HeaderStyle-Width="20%" DataField="Number" HeaderText="رقم الطالب" />
                                <asp:BoundField DataField="Name" HeaderText="اسم الطالب" />
                            </Columns>
                            <FooterStyle CssClass="GridHeaderFooter" />
                            <HeaderStyle CssClass="GridHeaderFooter" />
                            <PagerStyle CssClass="GridPager" />
                        </asp:GridView>
                        <asp:Button ID="Button1" runat="server" Text="اضف الطلبة للفصل" 
                            onclick="Button1_Click" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
